filechooserwidget: Allow typing a location in recent mode
authorTimm Bäder <mail@baedert.org>
Wed, 19 Feb 2020 06:35:40 +0000 (07:35 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 20 Feb 2020 09:23:09 +0000 (10:23 +0100)
This is triggered by typing / or hitting Ctrl+L. Since we don't have a
visual indicator for this mode right now anyway, the reason for not
allowing it in recent mode cited in the comment just above the
early-exit is irrelevant.

Closes #2178

gtk/gtkfilechooserwidget.c

index 779ae6d5ce9a0e29f990dd9d96f7db01365b9bde..6d2c54ecb03761afc5a06908cab512e138c8efc3 100644 (file)
@@ -2650,12 +2650,11 @@ location_switch_to_filename_entry (GtkFileChooserWidget *impl)
 {
   GtkFileChooserWidgetPrivate *priv = gtk_file_chooser_widget_get_instance_private (impl);
 
-  /* when in search or recent files mode, we are not showing the
+  /* when in search mode, we are not showing the
    * browse_header_box container, so there's no point in switching
    * to it.
    */
-  if (priv->operation_mode == OPERATION_MODE_SEARCH ||
-      priv->operation_mode == OPERATION_MODE_RECENT)
+  if (priv->operation_mode == OPERATION_MODE_SEARCH)
     return;
 
   gtk_revealer_set_reveal_child (GTK_REVEALER (priv->browse_header_revealer), TRUE);